package com.pocket.insight.base.utils;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/2
 */
public class SqlUtil {

    public static String removeRepeatedSymbolAtHeadAndTail(String s, char symbol) {
        int first = 0;
        int last = s.length();
        if (s.charAt(0) == symbol) {
            first = 1;
        }
        if (s.charAt(s.length() - 1) == symbol) {
            last = s.length() - 1;
        }
        return s.substring(first, last);
    }
}
